import { INITIAL_FORM_QUERY_VALUE } from '../../constants';
import { TASK_STATUS, TOP_CHANNELS, TaskStatusEnum } from '@/constants';

export default {
  name: 'AdjustHeader',
  data() {
    return {
      labelWidth: '80px',
      formQuery: { ...INITIAL_FORM_QUERY_VALUE },
      taskStatusList: TASK_STATUS.filter(item => item.id !== TaskStatusEnum.CANCEL),
      topChannelList: TOP_CHANNELS,
    };
  },
  methods: {
    //查询
    onQuery() {
      this.$emit('query', { ...this.formQuery });
    },

    // 重置
    onReset() {
      this.formQuery = { ...INITIAL_FORM_QUERY_VALUE };
      this.$emit('reset', { ...this.formQuery });
    },
  },
};
